#ifndef ____Mavlinks_H____
#define ____Mavlinks_H____

#include "Mavlink.h"
#include <map>
#include <string>

struct MavlinkInfo
{
    unsigned char seq;
    unsigned short port;
    unsigned short peerPort;
    unsigned int ip;
    CMavlink mavlink;
};

class CMavlinks
{
public:
    CMavlinks();
    ~CMavlinks() {};

    void Add(unsigned char sysid, unsigned short port, unsigned short peerPort, std::string ip);
    CMavlink &Get(unsigned char sysid );
    void SendHeartBeat();
    
private:
    std::map<unsigned char, MavlinkInfo> mapMavlink;
};

#endif // ____Mavlinks_H____
